//
//  SingerListTableViewCell.m
//  CatMusic
//
//  Created by dllo on 15/4/27.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SingerListTableViewCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation SingerListTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.pic = [[UIImageView alloc] init];
        [self.contentView addSubview:self.pic];
        self.pic.clipsToBounds = YES;
        self.pic.layer.cornerRadius = 10;
        self.SingerName = [[UILabel alloc] init];
        [self.contentView addSubview:self.SingerName];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.pic.frame = CGRectMake(WIDTH / 375 * 20, HEIGHT / 667 * 10, WIDTH / 375 * 60, HEIGHT / 667 * 60);
    self.SingerName.frame = CGRectMake(WIDTH / 375 * 100, HEIGHT / 667 * 20, WIDTH / 375 * 200, HEIGHT / 667 * 30);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
